std::basic_ostream::put
From Cppreference
< cpp | io | basic ostream
| C++ Standard Library | ||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Input/output library | ||||||||||||||||||||||||||||||||||||||||||||||||
| std::basic_ostream | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
| basic_ostream& put( char_type ch );
|
||
Writes character ch to the output stream. If good() != true, setstate(failbit) is called and the function returns. If inserting fails, setstate(badbit) is called and the function returns.
Contents |
[edit] Parameters
| ch | - | character to write |
[edit] Return value
*this
[edit] Example
| This section is incomplete |
[edit] See also
|
inserts formatted data (public member function) |
|
|
inserts blocks of characters (public member function) |
|